import 'package:json_annotation/json_annotation.dart';

part 'conversation.g.dart';

@JsonSerializable()
class conversation{
  conversation({this.conversationid,this.user1,this.user1img,this.user2,this.user2img,this.lastmessage});
  int conversationid;
  String user1;
  String user1img;
  String user2;
  String user2img;
  String lastmessage;
  factory conversation.fromJson(Map<String, dynamic> json) => _$conversationFromJson(json);
  Map<String,dynamic> toJson() => _$conversationToJson(this);
}